Repository navigation
test: Normalize the package name in the new deprecation snapshots - #3061
Merged
Merged
Conversation
The deprecation snapshots added with the argument renames and the legacy-matrix warnings went through expect_snapshot(), so under a flavor lifecycle names the package "igraph.dev" and the recorded "igraph" no longer matches. Route them through expect_snapshot_igraph(), which normalizes the name (tests/testthat/helper-snapshot.R). On the mainline the name is left as is, and these sections carry no file paths for the helper to scrub, so their snapshots stay byte-identical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
schochastics
enabled auto-merge (squash)
December 4, 2026 09:36
auto-merge was automatically disabled
December 4, 2026 10:00
Repository rule violations found
schochastics
added a commit
to schochastics/rigraph
that referenced
this pull request
Dec 4, 2026
…raph#3061) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: schochastics <schochastics@users.noreply.github.com> (cherry picked from commit d0fd2c1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Seven deprecation snapshots added recently use plain
expect_snapshot():hits_scores(scale =),closeness(vids =),sample_grg(nodes =),degree(v =)and the migration fixture's positional tail;add_edges()andmake_graph().Under a flavor (
igraph.dev, seescripts/flavor.sh), lifecycle names the running package, so the message reads "deprecated as of igraph.dev 3.0.0". The recorded "igraph 3.0.0" then doesn't match, and the series' CI failed on all seven.This switches them to
expect_snapshot_igraph(), which normalizes the name, astests/testthat/helper-snapshot.Rasks for any snapshot that names the package. Nothing changes on the mainline: the name is left as is, and these sections have noSource:lines for the helper to scrub, so the snapshots stay byte-identical (the six test files pass with no.new.md).A sweep of every
_snaps/*.mdsection whose output names the package found no other plainexpect_snapshot()left.🤖 Generated with Claude Code